<%@page import="com.edu.bean.Book"%>
<%@page import="com.edu.service.impl.BookServiceImpl"%>
<%@page import="com.edu.service.BookService"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String id = request.getParameter("bookId");
	int bookId = Integer.parseInt(id);
	BookService bs = new BookServiceImpl();
	Book book = bs.getBookById(bookId);
	request.setAttribute("book",book);
%>
<%@ include file="isLogin.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="updateBook.do" method="POST">
			<input type="hidden" name="bookId" value="${book.bookId}">
		书名<input type="text" name="bookName" value="${book.bookName}"> <br>
		作者<input type="text" name="bookWriter" value="${book.bookWriter}"> <br>
		价格<input type="text" name="bookPrice" value="${book.bookPrice}"> <br>
		库存<input type="number" name="bookNum" value="${book.bookNum}"> <br>
		类型<input type="text" name="bookType" value="${book.bookType}"> <br>
		<input type="submit" value="修改"> 
	</form>
</body>

</html>